'''
this is my math module
'''

def square(num):
    '''
    计算平方并返回结果
    >>> square(2)
    4
    >>> square(3)
    9
    '''
    return num * num

def square1(num):
    '''
    计算平方并返回结果
    >>> square1(2)
    4
    >>> square1(3)
    9
    '''
    return num ** 2

def product(num1, num2):
    '''
    乘法计算
    >>> product(2, 3)
    6
    >>> product(5, 11)
    55
    '''
    return num1 * num2

if __name__ == '__main__':
    import doctest
    import my_math
    doctest.testmod(my_math)
